@import "../../variables.scss";

#options {
  .sidebar-collapsed & {
    width: calc(100% - #{$sidebar-collapsed-width});
  }

  position: absolute;
  top: $header-height;
  left: 0;
  width: calc(100% - #{$sidebar-width});
  height: $options-height;
  background-color: $gray;
  border: none;
  box-shadow: 0 0 12px rgba(153, 153, 153, 0.4);
  z-index: 0;
  padding-left: 5px;

  .list-group {
    list-style: none;
    padding: 0;
    margin: 0;
    height: 100%;
    float: left;

    li {
      padding: 0 5px 0 0;
      margin: 0 5px 0 0;
      border-right: 2px solid lavender;
      height: $toolSize;
      line-height: $toolSize;
      float: left;

      label {
        font-weight: normal;
        display: inline-block;
        line-height: $toolSize;
        vertical-align: top;
        height: 100%;
        font-size: 11px;
      }

      input {
        margin: 0;
        vertical-align: middle;

        &:active, &:focus {
          outline: none;
        }
      }

      input[type=radio] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;

        display: inline-block;
        width: 22px;
        height: 22px;
        background: url("select_icons.png") no-repeat;

        &.mode-new {
          background-position: -4px -2px;
        }

        &.mode-add {
          background-position: -27px -2px;
        }

        &.mode-sub {
          background-position: -51px -2px;
        }

        &.mode-intersect {
          background-position: -75px -2px;
        }

        &:checked {
          background-color: rgba(0, 0, 0, 0.1);
          border-radius: 3px;
          border: 1px solid rgba(0, 0, 0, 0.3);
          outline: none;
        }

      }

      input[type=text], input[type=number] {
        width: 70px;
        height: 20px;
        border-radius: 2px;
        background-color: white;
        border: 1px solid rgba(0, 0, 0, 0.3);
      }

      button {
        height: 100%;
        line-height: $options-height;
        border: none;
      }
    }
  }

  .edit-group {
    height: $toolSize;
    line-height: $toolSize;
    font-size: 11px;

    .tool-info {
      float: left;
      margin-left: 10px;
    }
    input[type=text], input[type=number] {
      width: 70px;
      height: 20px;
      border-radius: 2px;
      background-color: white;
      border: 1px solid rgba(0, 0, 0, 0.3);
    }

    input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
      -webkit-appearance: none;
      margin: 0;
    }

    .apply {
      float: right;
      background: url("apply.svg") no-repeat left transparent;
      background-size: $toolSize - 25px;
    }

    label {
      float: left;
      font-weight: normal;
      display: inline-block;
      line-height: $toolSize;
      vertical-align: top;
      height: 100%;
    }

    button {
      float: left;
      opacity: 0.7;
      transition: All 0.3s;
      display: inline-block;
      height: 100%;
      padding-left: $toolSize - 20px;
      margin-left: 10px;
      font-weight: normal;
      font-size: 13px;

      &:hover {
        opacity: 1;
      }

      &:active, &:focus {
        outline: none;
      }

      &.cancel {
        background: url("cancel.svg") no-repeat left transparent;
        background-size: $toolSize - 25px;
      }
      &.save {
        background: url("save.svg") no-repeat left transparent;
        background-size: $toolSize - 25px;
      }
    }
  }
}